package com.example.zyl.common.query.annotation;


import com.baomidou.mybatisplus.core.enums.SqlLike;
import com.example.zyl.common.query.enums.Operation;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;


@Target({FIELD})
@Retention(RUNTIME)
public @interface SearchField {

    /**
     * Operation枚举值
     * @return Operation枚举值
     */
    Operation value();

    /**
     * 表字段名
     * @return String
     */
    String tableField() default "";

    /**
     * 模糊查询类型
     * @return SqlLike枚举值
     */
    SqlLike likeType() default SqlLike.DEFAULT;
}
